


class PlaneMeshInfo{
    constructor(width = 10,height = 10,widthSegments = 10,lengthSegments = 10){

        let plane = new cc.primitives.plane({
            includeNormal:true,
            includeUV:false,
            width:width,
            height:height,
            widthSegments:widthSegments,
            lengthSegments:lengthSegments
        });

        this.vertexs = plane.positions;
        this.indices = plane.indices;
        this.normals = plane.normals;
        this.min = [plane.minPos.x,plane.minPos.y,plane.minPos.z];
        this.max = [plane.maxPos.x,plane.maxPos.y,plane.maxPos.z];
    }
}

export default PlaneMeshInfo;
